home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFUNCS
/
RSCSXTYP.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-03-18
|
750b
|
28 lines
/**************************************************************************
* RSCSXTYP.C - Set extended object types within a tree.
*************************************************************************/
#include "gemfintl.h"
#ifdef GEMFAST_PROTOS
void rsc_sxtypes(OBJECT *thetree, short thisobj, short thistype, ...)
#else
void rsc_sxtypes(thetree, thisobj, thistype)
OBJECT *thetree;
short thisobj;
short thistype;
#endif
{
register OBJECT *ptree;
va_list args;
ptree = thetree;
va_start(args, thistype);
while (thisobj >= 0) {
ptree[thisobj].ob_type = (thistype << 8) | (ptree[thisobj].ob_type & 0x00FF);
thisobj = va_arg(args, short);
thistype = va_arg(args, short);
}
va_end(args);
}